<template>
    <div class="container">
        部门设置
    </div>
</template>
<script setup lang="ts">
import { getCurrentInstance, nextTick, onActivated, onMounted, reactive, ref } from "vue";
import { onBeforeRouteLeave, useRoute } from 'vue-router';
    const route = useRoute();
    onActivated(()=>{
        if (route.meta.isUseCache == true) {
            
        }
        // 通过这个控制刷新
        route.meta.isUseCache = false;
    });
    onBeforeRouteLeave((to, from, next)=>{        
        to.meta.isUseCache = false;
        next();    
    });
</script>
<style lang="scss" scoped>

</style>
